package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.template.UserInfoTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IUserInfoRepository extends ElasticsearchRepository<UserInfoTemplate,Long> {
    /**
     * jpa自定义方法
     * 根据关键字获取es中所有用户模板对象
     * @param keyword
     * @return
     */
    List<UserInfoTemplate> findByDestName(String keyword);
}
